package com.yinzifan.seller.service;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;

@Component
public class HazelcastMapTest {

	@Autowired
	private HazelcastInstance hazelcastInstance;
	
	@PostConstruct
	public void put() {
		IMap<Object, Object> map = hazelcastInstance.getMap("yinzifan");
		map.put("name", "yinzifan");
	}
}
